-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SO-4122: index schema migration support #1249
Conversation
...so that they can be used even if the actual index name is different for a mapping than the real one (useful when running migrations).
Introduce init(Searcher) method to allow caching of services and global data when migrating an index.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 9.x #1249 +/- ##
============================================
+ Coverage 47.87% 47.96% +0.09%
- Complexity 13797 13833 +36
============================================
Files 1940 1942 +2
Lines 94835 94937 +102
Branches 10948 10956 +8
============================================
+ Hits 45402 45540 +138
+ Misses 46416 46373 -43
- Partials 3017 3024 +7 ☔ View full report in Codecov by Sentry. |
commons/com.b2international.index/src/com/b2international/index/es/EsDocumentWriter.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me, some minor suggestions in the comments!
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
commons/com.b2international.index/src/com/b2international/index/es/admin/EsIndexAdmin.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR adds a very basic, index schema migrator functionality to aid existing indices to migrate to a newer schema version.